home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / Snippets / Printing / Rotated Thingies / …using Rotate PicComments / Rotn Objs.r < prev   
Encoding:
Text File  |  1992-07-15  |  3.2 KB  |  180 lines  |  [TEXT/MPS ]

  1.  
  2. /* Resources for "Rotn Text".      */
  3. /* 7/25/91    Dave Hersey / MacDTS  */
  4. /* ============================== */
  5.  
  6. #include "systypes.r"
  7. #include "types.r"
  8.  
  9. #define kPrefSize                128        /* Desired heapsize */
  10. #define kMinSize                 80        /* Minimum heapsize */
  11.  
  12. #define    rMenuBar                128        /* menubar            */
  13. #define    mApple                    128        /* Apple menu        */
  14. #define    mFile                    129        /* File menu        */
  15. #define    mEdit                    130        /* Edit menu         */
  16.  
  17.  
  18. /* we use an MBAR resource to conveniently load all the menus */
  19.  
  20. resource 'MBAR' (rMenuBar, preload) {
  21.     { mApple, mFile, mEdit };        /* four menus */
  22. };
  23.  
  24.  
  25. resource 'MENU' (mApple, preload) {
  26.     mApple, textMenuProc,
  27.     0b1111111111111111111111111111100,
  28.     enabled, apple,
  29.     {
  30.         "Sorry, no \"About…\" box",
  31.             noicon, nokey, nomark, plain;
  32.         "-",
  33.             noicon, nokey, nomark, plain
  34.     }
  35. };
  36.  
  37. resource 'MENU' (mFile, preload) {
  38.     mFile, textMenuProc,
  39.     0b0000000000000000000000000000101,
  40.     enabled, "File",
  41.     {
  42.         "Print Test Page…",
  43.             noicon, "P", nomark, plain;
  44.         "-",
  45.             noicon, nokey, nomark, plain;
  46.         "Quit",
  47.             noicon, "Q", nomark, plain
  48.     }
  49. };
  50.  
  51. resource 'MENU' (mEdit, preload) {
  52.     mEdit, textMenuProc,
  53.     0b0000000000000000000000000000000,
  54.     enabled, "Edit",
  55.      {
  56.         "Undo",
  57.             noicon, "Z", nomark, plain;
  58.         "-",
  59.             noicon, nokey, nomark, plain;
  60.         "Cut",
  61.             noicon, "X", nomark, plain;
  62.         "Copy",
  63.             noicon, "C", nomark, plain;
  64.         "Paste",
  65.             noicon, "V", nomark, plain;
  66.         "Clear",
  67.             noicon, nokey, nomark, plain
  68.     }
  69. };
  70.  
  71.  
  72. resource 'SIZE' (-1) {
  73.     reserved,
  74.     ignoreSuspendResumeEvents,
  75.     reserved,
  76.     cannotBackground,
  77.     multiFinderAware,
  78.     backgroundAndForeground,
  79.     dontGetFrontClicks,
  80.     ignoreChildDiedEvents,
  81.     not32BitCompatible,
  82.     notHighLevelEventAware,
  83.     onlyLocalHLEvents,
  84.     notStationeryAware,
  85.     dontUseTextEditServices,
  86.     reserved,
  87.     reserved,
  88.     reserved,
  89.     kPrefSize * 1024,
  90.     kMinSize * 1024
  91. };
  92.  
  93.  
  94. resource 'vers' (1, "Application version") {
  95.     0x1,
  96.     0x0,
  97.     release,
  98.     0x0,
  99.     verUS,
  100.     "1.0",
  101.     "1.0 by Dave Hersey,\nMacDTS, Apple Compu"
  102.     "ter, Inc."
  103. };
  104.  
  105.  
  106. resource 'vers' (2, "Application info") {
  107.     0x1,
  108.     0x0,
  109.     release,
  110.     0x0,
  111.     verUS,
  112.     "1.0",
  113.     "Rotated text printing sample"
  114. };
  115.  
  116.  
  117. type 'EGAD' as 'STR ';
  118.  
  119.  
  120. resource 'EGAD' (0) {
  121.     "Rotated text printer sample"
  122. };
  123.  
  124.  
  125. resource 'BNDL' (128) {
  126.     'EGAD',
  127.     0,
  128.     {
  129.         'ICN#',
  130.         {
  131.             0, 128
  132.         },
  133.         'FREF',
  134.         {
  135.             0, 128
  136.         }
  137.     }
  138. };
  139.  
  140.  
  141. resource 'FREF' (128) {
  142.     'APPL',
  143.     0,
  144.     ""
  145. };
  146.  
  147.  
  148. resource 'ICN#' (128) {
  149.     {    /* array: 2 elements */
  150.         /* [1] */
  151.         $"0000 0000 0000 0000 0000 0000 0000 0000"
  152.         $"0000 1840 0000 14A0 4000 13A0 C000 0820"
  153.         $"A000 0890 9000 0808 8800 1004 8400 6002"
  154.         $"43FF 8002 20FF 00FC 20FE 0100 1078 0100"
  155.         $"1000 0E00 1000 0E00 1000 0E00 207F C600"
  156.         $"2080 2200 2100 2200 2200 2200 2200 2200"
  157.         $"2200 2200 1100 1100 0880 0880 0700 07",
  158.         /* [2] */
  159.         $"0000 0000 0000 0000 0000 0000 0000 0000"
  160.         $"0000 1840 0000 1CE0 4000 1FE0 C000 0FE0"
  161.         $"E000 0FF0 F000 0FF8 F800 1FFC FC00 7FFE"
  162.         $"7FFF FFFE 3FFF FFFC 3FFF FF00 1FFF FF00"
  163.         $"1FFF FF00 1FFF FE00 1FFF FE00 1FFF FE00"
  164.         $"3FFF FE00 3F80 3E00 3F00 3E00 3E00 3E00"
  165.         $"3E00 3E00 3E00 3E00 1F00 1F00 0F80 0F80"
  166.         $"0700 07"
  167.     }
  168. };
  169.  
  170. resource 'ics#' (128) {
  171.     {    /* array: 2 elements */
  172.         /* [1] */
  173.         $"0000 0000 006C 807C C02E A0C3 DF8F 4F10"
  174.         $"4030 4FB0 5850 5050 5050 3838",
  175.         /* [2] */
  176.         $"0000 0000 006C 807C C03E E0FF FFFF 7FF0"
  177.         $"7FF0 7FF0 7FF0 7870 7070 7070 3838"
  178.     }
  179. };
  180.